package com.brokendust.client.task;

import com.brokendust.client.PixelEngine;
import net.minecraft.client.Minecraft;

public class LoginTask {
    public static void execute(String type, String message) {
        if (type.equalsIgnoreCase("Version")) {
            ClearTask.clear();
            PixelEngine.pixelConnect.send("version", "1.2.0");
            return;
        }
        if (type.equalsIgnoreCase("MenuOpen")) {
            GUITask.openMenu(message);
            return;
        }
        if (type.equalsIgnoreCase("MenuClose")) {
            Minecraft.getInstance().setScreen(null);
            return;
        }
        if (type.equalsIgnoreCase("UpDataMenu")) {
            GUITask.upDataMenu(message);
            return;
        }
        if (type.equalsIgnoreCase("Download")) {
            DownLoadImage.downLoadImage(message);
            return;
        }
        if (type.equalsIgnoreCase("ShowHub")) {
            HubTask.showHub(message);
            return;
        }
        if (type.equalsIgnoreCase("HideHub")) {
            HubTask.hideHub(message);
            return;
        }
        if (type.equalsIgnoreCase("UnPlayerRender")) {
            RenderPlayerTask.unRenderPlayer(message);
            return;
        }
        if (type.equalsIgnoreCase("PlayerRender")) {
            RenderPlayerTask.renderPlayer(message);
        }
    }
}
